home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.BaseAction;
- import java.awt.event.ActionEvent;
- import java.beans.PropertyChangeEvent;
- import java.beans.PropertyChangeListener;
- import java.util.EventObject;
- import javax.swing.AbstractAction;
-
- public class AdvancedPane$PasteAction extends BaseAction implements PropertyChangeListener {
- // $FF: synthetic field
- final AdvancedPane this$0;
-
- public AdvancedPane$PasteAction(AdvancedPane var1) {
- super("edit.item.paste", 86);
- this.this$0 = var1;
- var1.ipeTable.pasteAction.addPropertyChangeListener(this);
- var1.xpeTable.pasteAction.addPropertyChangeListener(this);
- var1.igeTable.pasteAction.addPropertyChangeListener(this);
- var1.xgeTable.pasteAction.addPropertyChangeListener(this);
- var1.notTable.pasteAction.addPropertyChangeListener(this);
- var1.piTable.pasteAction.addPropertyChangeListener(this);
- var1.nsTable.pasteAction.addPropertyChangeListener(this);
- var1.dtTable.pasteAction.addPropertyChangeListener(this);
- ((AbstractAction)this).setEnabled(false);
- }
-
- public void updateEnabled() {
- ((AbstractAction)this).setEnabled(this.this$0.getCurrentTable().cutAction.isEnabled());
- }
-
- public void actionOccurred(ActionEvent var1) {
- this.this$0.getCurrentTable().pasteAction.actionOccurred(var1);
- }
-
- public void propertyChange(PropertyChangeEvent var1) {
- if (var1.getPropertyName().equals("enabled") && ((EventObject)var1).getSource() == this.this$0.getCurrentTable().pasteAction) {
- Boolean var2 = (Boolean)var1.getNewValue();
- ((AbstractAction)this).setEnabled(var2);
- }
-
- }
- }
-